import java.util.Scanner;

public class J11Scanner {
    public static void main(String[] args) {
        System.out.println(123);

        int a = 8;
        // Scanner 扫描仪
        Scanner sc = new Scanner(System.in);
        //可以让程序暂停，等待用户输入，
        // 收到回车，输入结束，继续执行
        System.out.print("输入年龄：");
        int age = sc.nextInt();
        System.out.println("age = " + age);

        System.out.print("输入血量：");
        int blood = sc.nextInt();
        System.out.println("blood = " + blood);


    }
}

class J12String{
    public static void main(String[] args) {
        int a = 7;
        byte b1 = 2;

        System.out.println("abc");
        // String
        String s1 = "xyz";
        System.out.println("s1 = " + s1);

        Scanner sc = new Scanner(System.in);
//        System.out.print("输入年龄：");
//        int age = sc.nextInt();
//        System.out.println("age = " + age);

        System.out.print("输入名字：");
        //接收字符串
        String name = sc.nextLine();
        System.out.println("name = " + name);
    }
}
